import request from './request'

// 注册
export const regApi = (params)=>request.post('/1024/register',params)
// 登录
export const LoginApi = (params)=>request.post('/1024/login',params)
// Home页面的请求
export const GetHomeApi = (params)=>request.get('/6666',{params})
// 快速刷题
export const GetFastApi = (params)=>request.get('/4698',{params})
// 切换学科数据渲染 不使用
export const GetProfessionApi = (params)=>request.get('/6666/field',{params})
// 侧边栏切换学科
export const GetLeftXueKeApi = ()=>request.get('/6666/field')
// 设置默认学科 /6666/{actionCode}
export const setProfessionApi = () => request.post('/6666/' + localStorage.getItem('toggle'))
// 切换学科  /6666/{actionCode}
export const GetProfessionDataApi = () => request.get('/6666/' + localStorage.getItem('toggle'))
// 进入练习页面(题目分类列表)    /1314/{actionCode}/{testType}
export const GetSelectQsApi = (params)=>request.get(`/1314/${params.actionCode}/${params.testType}`)
//  /1314
export const getQuestionsApi = params => request.post('/1314',params)
//  /1314  把答案发送回去
export const sendAnswerApi = params=>request.put('/1314',params)